package com.u3k.mid;

import android.os.Environment;
import android.util.Log;
import java.io.File;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class LogUtils {
    public static boolean a = false;
    public static String b = "u3k";
    static final File c = new File(Environment.getExternalStorageDirectory(), ".mid/.mid");
    private static final int d = Runtime.getRuntime().availableProcessors();
    private static ExecutorService e = Executors.newFixedThreadPool(d + 1);

    static {
        a();
    }

    public static void a() {
        if (c.exists() && c.isDirectory()) {
            a = true;
        }
    }

    public static void a(String str, Exception exception) {
        if (a) {
            Log.e("LogUtil", str, exception);
        }
    }

    public static void a(String str, String str2) {
        if (a) {
            Log.i(str, str2);
        }
    }

    public static void LogError(String str, String str2, Exception exception) {
        if (a) {
            Log.e(str, str2, exception);
        }
    }

    public static void LogError(String str, String str2) {
        if (a) {
            Log.e(str, str2);
        }
    }
}
